﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
  <head>
    
    <%@ include file="/WEB-INF/include/meta.jsp"%>
    <%@ include file="/WEB-INF/include/css.jsp"%>
    
  </head>
  <!-- end header -->
  <body>
    <div class="page-group">
      <div class="page page-current">
        
        <header class="bar bar-nav fs-header-small">
          <a href="${ctx.host}" class="icon icon-left pull-left"></a>
          <h1 class="title">个人信息</h1>
        </header>
        
        <div class="content">
          <div class="list-block no-margin" style="margin-top: .7rem;">
            <ul>
              <li class="item-content">
                <div class="item-inner">
                  <div class="item-title">头像</div>
                  <div class="item-media"><img src="${principal.profile.avatar}" style='width: 3rem; height: 3rem;'></div>
                </div>
              </li>
              <li class="item-content">
                <div class="item-inner">
                  <div class="item-title">姓名</div>
                  <div class="item-after"><span>${principal.name}</span></div>
                </div>
              </li>
              <li  class="item-content">
                <div class="item-inner">
                  <div class="item-title">昵称</div>
                  <div class="item-after"><span>${principal.profile.nickname}</span></div>
                </div>
              </li>
              <li class="item-content">
                <div class="item-inner">
                  <div class="item-title">手机</div>
                  <div class="item-after"><span>${principal.mobile}</span></div>
                </div>
              </li>
              <li class="item-content">
                <div class="item-inner">
                   <div class="item-title">职位</div>
                   <div class="item-after">
                     <span>
                     <c:forEach var="authority" items="${enums['authority']}">
                      <c:if test="${principal.authority eq authority}">
                        ${authority.description}
                      </c:if>
                      </c:forEach>
                     </span>
                   </div>
                </div>
              </li>
              <!-- <li class="item-content">
                <div class="item-inner">
                  <div class="item-title">可排课时间</div>
                </div>
              </li> -->
            </ul>
          </div>
          
          <div class="content-block">
            <p style="margin:1em;"><a href="javascript:void(0);" class="button button-fill button-danger button-big">退出登录</a></p>
          </div>
          
          
        </div>
      </div>
    </div>
    
    <%@ include file="/WEB-INF/include/script.jsp"%>
    <d:resource type="script" root="${ctx.resource}/build" src="js/page/profile/index.js" />
    <script type="text/javascript">
      require(['page/profile/index'], function(page) {
        page.init({
        })
      })
    </script>
    
  </body>
</html>